const { describe, it } = require("node:test");
const assert = require("node:assert");

const { jsonFmt } = require("../lib/fmt.js");

describe("fmt.js", function () {
  it("jsonFmt", function () {
    const input = {
      name: "ivan",
      age: 11,
      wallet: { balance: 1233675445217861n },
    };
    const output = `{
  "name": "ivan",
  "age": 11,
  "wallet": {
    "balance": "1233675445217861"
  }
}`;

    assert.deepStrictEqual(jsonFmt(input), output);
  });
});
